/**
 * Demo.java is created by Zachariah at 2012-1-19 上午10:21:10
 */
package com.zack.designPattern.composite;

/**
 * @author zachariah zzcfrog@gmail.com
 *
 */
public class Demo {

	public static void main(String args[]){
		Tree tree = new Branch();
		((Branch)tree).add(new Leaf("l1"));
		((Branch)tree).add(new Leaf("l2"));
	}
}
